-- GENERATED SPELL FOR [Aeranas] --


function spell0_17085(pUnit, Event) --@Enveloping Winds,n/a--
pUnit:FullCastSpellOnTarget(15535,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17085', 12000, 1)
end

function spell1_17085(pUnit, Event) --@Shock,n/a--
pUnit:FullCastSpellOnTarget(12553,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17085', 0, 1)
end

function Sorts_17085(pUnit, Event)
local choix_sorts_17085 = math.random(0, 1)
if choix_sorts_17085 == 0 then
pUnit:RegisterEvent('spell0_17085', 1, 1)
end
if choix_sorts_17085 == 1 then
pUnit:RegisterEvent('spell1_17085', 1, 1)
end
end

function mob17085_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17085', math.random(1500, 3000), 1)
end

function mob17085_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17085_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17085_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17085, 1, 'mob17085_Action')
RegisterUnitEvent(17085, 2, 'mob17085_Leave')
RegisterUnitEvent(17085, 3, 'mob17085_Kill')
RegisterUnitEvent(17085, 4, 'mob17085_Die')
